package com.gem.day05.exercise;

public class EmployeeTest {
	public static void main(String[] args) {
		//创建若干个下属
		Employee e1 = new Employee("HRC001", "jack", 3000.0);
		Employee e2 = new Employee("HRC002", "rose", 4500.0);
		Employee e3 = new Employee("HRC003", "tom", 2500.0);
		//把下属添加到数组中
		Employee[] employees = { e1, e2, e3 };
		//创建上司
		Employee manager = new Employee("B001", "BOSS", 10000.0, employees);
		//输出
		System.out.println(manager);
		System.out.println(manager.countEmp());

		Employee newEmp = new Employee("HRC004", "jerry", 5000.0);
		manager.addEmp(newEmp);
		System.out.println(manager);

	}
}
